-- GENERATED SPELL FOR [Necrofiend] --


function spell0_11551(pUnit, Event) --@Web Explosion,Self--
pUnit:FullCastSpellOnTarget(15474,pUnit)
pUnit:RegisterEvent('Sorts_11551', 10263, 1)
end

function Sorts_11551(pUnit, Event)
local choix_sorts_11551 = math.random(0, 0)
if choix_sorts_11551 == 0 then
pUnit:RegisterEvent('spell0_11551', 1, 1)
end
end

function mob11551_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11551', math.random(1500, 3000), 1)
end

function mob11551_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11551_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11551_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11551, 1, 'mob11551_Action')
RegisterUnitEvent(11551, 2, 'mob11551_Leave')
RegisterUnitEvent(11551, 3, 'mob11551_Kill')
RegisterUnitEvent(11551, 4, 'mob11551_Die')
